package com.tests;

import java.io.IOException;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class Login {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws InterruptedException 
	 */
	public WebDriver login(WebDriver driver){
		driver.get("http://64.73.26.227:10039/wps/myportal/");
		//Thread.sleep(20000);
		driver.findElement(By.id("userid")).sendKeys("QAUWJr11");
		driver.findElement(By.id("password")).sendKeys("NMIpass@123456");
		driver.findElement(By.name("LoginPortletFormSubmit")).click();
		
		driver.findElement(By.linkText("1000030926")).click();
		System.out.println(driver.getTitle());
		return driver;
	}

}
